# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/22 13:28
# File: urls.py
# IDE: PyCharm
from django.conf.urls import url
from rest_framework import routers
from Apps.web_api.views.auth import LoginView
from Apps.web_api.views.user import UserViewSet
from Apps.web_api.views.brand import BrandViewSet
from Apps.web_api.views.category import CategoryViewSet
from Apps.web_api.views.department import DepartmentViewSet
from Apps.web_api.views.craft import CraftViewSet
from Apps.web_api.views.foundation import FoundationViewSet
from Apps.web_api.views.experience import ExperienceViewSet
from Apps.web_api.views.marketing import MarketingViewSet
from Apps.web_api.views.advise import AdviseViewSet
from Apps.web_api.views.notice import NoticeViewSet
from Apps.web_api.views.construction import ConstructionViewSet
from Apps.web_api.views.constructionlogs import ConstructionLogsViewSet

router = routers.DefaultRouter()

urlpatterns = [

    url(r'^Auths/', LoginView.as_view()),
   # url(r'^Area/', AreaApiView.as_view()),
    # url(r'^Enterprise/$', enterprise.Views.as_view()),
    # url(r'^Enterprise/(?P<pk>\d+)$', enterprise.DetailView.as_view()),

]

router.register('User',UserViewSet,basename='User')
router.register('Brand',BrandViewSet,basename='Brand')
router.register('Category',CategoryViewSet,basename='Category')
router.register('Department',DepartmentViewSet,basename='Department')
router.register('Craft',CraftViewSet,basename='Craft')
router.register('Foundation',FoundationViewSet,basename='Foundation')
router.register('Experience',ExperienceViewSet,basename='Experience')
router.register('Marketing',MarketingViewSet,basename='Marketing')
router.register('Advise',AdviseViewSet,basename='Advise')
router.register('Notice',NoticeViewSet,basename='Notice')
router.register('Construction',ConstructionViewSet,basename='Construction')
router.register('ConstructionLogs',ConstructionLogsViewSet,basename='ConstructionLogs')
urlpatterns += router.urls